import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Film from '@/components/film/Film'
import Book from '@/components/book/Book'
import Resouse from '@/components/resouse/Resouse'
import Life from '@/components/life/Life'
import FilmDetail from '@/components/film/FilmDetail'
import BookDetail from '@/components/book/BookDetail'
import ResouseDetail from '@/components/resouse/ResouseDetail'
import LifeDetail from '@/components/life/LifeDetail'
import Manage from '@/components/back/Manage'
import Login from '@/components/back/Login'




Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '/',
      component: Home
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/film',
      name: 'film',
      component: Film
    },
    {
      path: '/book',
      name: 'book',
      component: Book
    },
    {
      path: '/book/:id',
      name: 'bookId',
      component: Book
    },
    {
      path: '/resouse',
      name: 'resouse',
      component: Resouse
    },
    {
      path: '/life',
      name: 'life',
      component: Life
    },
    {
      path: '/filmDetail',
      name: 'filmone',
      component: Film
    },
    {
      path: '/filmDetail/:id',
      name: 'filmDetail',
      component: FilmDetail
    },
    {
      path: '/film/:typeId',
      name: 'filmThree',
      component: Film
    },
    {
      path: '/bookDetail/:id',
      name: 'bookDetail',
      component: BookDetail
    },
    {
      path: '/resouseDetail/:id',
      name: 'resouseDetail',
      component: ResouseDetail
    },
    {
      path: '/lifeDetail/:id',
      name: 'lifeDetail',
      component: LifeDetail
    },
    {
      path: '/film/:typeId/:countryId',
      name: 'filmTwo',
      component: Film
    },
    {
      path: '/manage',
      name: 'manage',
      component: Manage
    }
  ]
})
